package rus.dao.hibernate;


import rus.dao.ProductDAO;
import rus.model.Product;

public class ProductDAOHibernate extends GenericDaoHibernate<Product, Long> implements
		ProductDAO {

	public ProductDAOHibernate() {
		super(Product.class);		
	}

	public void saveOrUpdate(Product product) {
		getHibernateTemplate().saveOrUpdate(product);
		getHibernateTemplate().flush();
	}

}
